<template>
    <div id="proportion" style="width:100%;height:100%"></div>
</template>

<script>
export default {
    name:'proportion',
    data() {
        return {
            trafficWay: [
                {name: '光蛋',value:20000},
                {name: '鲜蛋',value:56435},
                {name: '肉鸽',value:97876},
                {name: '鸽粪',value:54321}
            ],
            nameArray: ['光蛋','鲜蛋','肉鸽','鸽粪'],
            color:['#2ca1ff','#0adbfa','#febe13','#65e5dd','#7b2cff','#fd5151','#f071ff', '#85f67a']
        }
    },
    mounted() {
    },
    methods: {
        makechart() {
            const proportion = this.$echarts.init(document.getElementById('proportion'))
            proportion.setOption(this.option)
        }
    }
}
</script>